
<%@ page import="edu.uow.devdocs.Issue" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'issue.label', default: 'Issue')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<div id="show-issue" class="content scaffold-show" role="main">
			<h1 id="issue_show"><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:flashMessage/>
			<table class="property-list issue faqs wp100">
				<colgroup>
					<col class="faqs">
				</colgroup>
				<g:if test="${issueInstance?.priority}">
				<tr class="fieldcontain">
					<th id="priority-label" class="property-label"><g:message code="issue.priority.label" default="Priority" /></th>
					<td class="property-value" aria-labelledby="priority-label"><g:fieldValue bean="${issueInstance}" field="priority"/></td>
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.dateCreated}">
				<tr class="fieldcontain">
					<th id="dateCreated-label" class="property-label"><g:message code="issue.dateCreated.label" default="Date Created" /></th>
					<td class="property-value" aria-labelledby="dateCreated-label"><g:formatDate format="dd/MM/yyyy" date="${issueInstance?.dateCreated}" /></td>
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.description}">
				<tr class="fieldcontain">
					<th id="description-label" class="property-label"><g:message code="issue.description.label" default="Description" /></th>
					
						<td class="property-value" aria-labelledby="description-label"><g:fieldValue bean="${issueInstance}" field="description"/></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.estimatedHours}">
				<tr class="fieldcontain">
					<th id="estimatedHours-label" class="property-label"><g:message code="issue.estimatedHours.label" default="Estimated Hours" /></th>
					
						<td class="property-value" aria-labelledby="estimatedHours-label"><g:fieldValue bean="${issueInstance}" field="estimatedHours"/></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.issue}">
				<tr class="fieldcontain">
					<th id="issue-label" class="property-label"><g:message code="issue.issue.label" default="Issue" /></th>
					
						<td class="property-value" aria-labelledby="issue-label"><g:fieldValue bean="${issueInstance}" field="issue"/></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.referenceNumber}">
				<tr class="fieldcontain">
					<th id="referenceNumber-label" class="property-label"><g:message code="issue.referenceNumber.label" default="Reference Number" /></th>
					
						<td class="property-value" aria-labelledby="referenceNumber-label"><g:fieldValue bean="${issueInstance}" field="referenceNumber"/></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.deployment}">
				<tr class="fieldcontain">
					<th id="deployment-label" class="property-label"><g:message code="issue.deployment.label" default="Deployment" /></th>
					
						<td class="property-value" aria-labelledby="deployment-label"><g:link controller="deployment" action="show" id="${issueInstance?.deployment?.id}">${issueInstance?.deployment?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.lastUpdated}">
				<tr class="fieldcontain">
					<th id="lastUpdated-label" class="property-label"><g:message code="issue.lastUpdated.label" default="Last Updated" /></th>
					
						<td class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate format="dd/MM/yyyy" date="${issueInstance?.lastUpdated}" /></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.project}">
				<tr class="fieldcontain">
					<th id="project-label" class="property-label"><g:message code="issue.project.label" default="Project" /></th>
					
						<td class="property-value" aria-labelledby="project-label"><g:link controller="project" action="show" id="${issueInstance?.project?.id}">${issueInstance?.project?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.status}">
				<tr class="fieldcontain">
					<th id="status-label" class="property-label"><g:message code="issue.status.label" default="Status" /></th>
					
						<td class="property-value" aria-labelledby="status-label"><g:link controller="status" action="show" id="${issueInstance?.status?.id}">${issueInstance?.status?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.person}">
				<tr class="fieldcontain">
					<th id="person-label" class="property-label"><g:message code="issue.person.label" default="Person" /></th>
					
						<td class="property-value" aria-labelledby="person-label"><g:link controller="person" action="__show" id="${issueInstance?.person?.id}">${issueInstance?.person?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.issueType}">
				<tr class="fieldcontain">
					<th id="issueType-label" class="property-label"><g:message code="issue.issueType.label" default="Issue Type" /></th>
					
						<td class="property-value" aria-labelledby="issueType-label"><g:link controller="issueType" action="show" id="${issueInstance?.issueType?.id}">${issueInstance?.issueType?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${issueInstance?.downtimeReport}">
				<tr class="fieldcontain">
					<th id="downtimeReport-label" class="property-label"><g:message code="issue.downtimeReport.label" default="Downtime Report" /></th>
					
						<td class="property-value" aria-labelledby="downtimeReport-label"><g:link controller="downtimeReport" action="show" id="${issueInstance?.downtimeReport?.id}">${issueInstance?.downtimeReport?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
			</table>
			<g:form class="columns">
				<fieldset class="form-actions">
					<g:hiddenField name="id" value="${issueInstance?.id}" />
					<g:link class="edit button" action="edit" id="${issueInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
